﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Ninesky.InterfaceService;
using Ninesky.Models;
using Ninesky.Service;

namespace Ninesky.Web.Areas.System.Controllers
{
    [Area("System")]
    public class CategoryController : Controller
    {
        private InterfaceCategoryService categoryService;
        public CategoryController(InterfaceCategoryService interfaceCategoryService)
        {
            categoryService = interfaceCategoryService;
        }


        // GET: Category/Create
        public ActionResult Create()
        {
            return View();
        }

        // POST: Category/Create
        [HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult Create(IFormCollection collection)
        {
            try
            {
                // TODO: Add insert logic here

                return View();
            }
            catch
            {
                return View();
            }
        }

        // GET: Category/Edit/5
    }
}